package com.pr.makfilm.user.navigation;

import com.pr.makfilm.core.navigation.NavigateAction;
import com.pr.makfilm.domain.Event;
import com.pr.makfilm.user.api.UserApiKeys;
import com.pr.makfilm.user.pages.event.reservation.EventReservationPage;
import org.apache.wicket.request.mapper.parameter.PageParameters;

/**
 * Created by p.radomski on 27.02.14.
 */
public class NavigateToEventReservationPage extends NavigateAction
{
   private Event event;

   public NavigateToEventReservationPage(Event event)
   {
      super(EventReservationPage.class);
      this.event = event;
   }

   @Override
   public PageParameters getPageParameters()
   {
      PageParameters parameters = new PageParameters();
      parameters.add(UserApiKeys.SID_KEY, event.getSid());
      return parameters;
   }
}